let t = require;
let e = module;
let o = e.exports;
o.default = e.exports;

('use strict');
console.log('start');
var _n179,
  i =
    (this && this.__extends) ||
    ((_n179 = function n(t, e) {
      return (_n179 =
        Object.setPrototypeOf ||
        ({
          __proto__: []
        } instanceof Array &&
          function (t, e) {
            t.__proto__ = e;
          }) ||
        function (t, e) {
          for (var o in e) {
            Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
          }
        })(t, e);
    }),
    function (t, e) {
      function o() {
        this.constructor = t;
      }
      _n179(t, e),
        (t.prototype =
          null === e
            ? Object.create(e)
            : ((o.prototype = e.prototype), new o()));
    });
Object.defineProperty(o, '__esModule', {
  value: !0
});
var r = t('UIComponent'),
  a = t('UIEvent'),
  s = t('UIMrg'),
  c = t('SoundMrg'),
  l = (function (t) {
    function e(e) {
      var o = t.call(this, e) || this;
      return (o._data = null), o;
    }
    return (
      i(e, t),
      (e.prototype.setData = function (t) {
        this.onDataChanged(t), this._data != t && (this._data = t);
      }),
      (e.prototype.getData = function () {
        return this._data;
      }),
      (e.prototype.onDataChanged = function () {}),
      (e.prototype.onTouchCloseHandler = function () {
        s.UIMrg.close(this), c.SoundMrg.click();
      }),
      (e.prototype.setLayer = function (t) {
        this._layer = t;
      }),
      Object.defineProperty(e.prototype, 'layer', {
        get: function get() {
          return this._layer;
        },
        enumerable: !1,
        configurable: !0
      }),
      (e.prototype.show = function () {
        if (!this.isShow) {
          var e = this.view.getComponent(cc.Widget);
          e && e.updateAlignment(),
            t.prototype.show.call(this),
            this.emit(a.UIEvent.Show);
        }
      }),
      (e.prototype.close = function () {
        this.isShow &&
          (t.prototype.close.call(this), this.emit(a.UIEvent.Close));
      }),
      e
    );
  })(r.UIComponent);
(o.default = l), console.log('end');
module.exports = e.exports;
